package com.sdy.hospitalguard.h5.controller;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.sdy.common.model.BizException;
import com.sdy.common.model.Response;
import com.sdy.hospitalguard.biz.model.AccessControlTerminal;
import com.sdy.hospitalguard.biz.service.AccessControlTerminalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.net.URISyntaxException;


/**
 * <p>
 * 注释
 * </p>
 *
 * @author fb
 * @since 2020/5/15
 */
@Slf4j
@RestController
@RequestMapping("/access")
@Api(tags = "凌江别用")
public class AccessControlTerminalController {

    @Autowired
    private AccessControlTerminalService accessControlTerminalService;

    @GetMapping("/get")
    @ApiOperation(value = "门禁终端默认访客库查询保存")
    public Response get() throws BizException, URISyntaxException {
        accessControlTerminalService.updateLibraries();
        return Response.success();
    }

}
